﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:local="clr-namespace:XAudio2Controls"                    
                    >
    
    <Style TargetType="{x:Type local:XA2Sequencer}">
       
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type local:XA2Sequencer}">
                    <Grid x:Name="LayoutRoot">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="*"/>
                            <ColumnDefinition Width="Auto"/>
                        </Grid.ColumnDefinitions>
                        <Grid.RowDefinitions>
                            <RowDefinition Height="Auto"/>
                            <RowDefinition/>
                            <RowDefinition/>
                        </Grid.RowDefinitions>
                        <Label  Grid.Row="0" Grid.Column="0" Content="[Sequencer]" HorizontalAlignment="Center"/>
                        <Canvas Grid.Row="1" Grid.RowSpan="2" Grid.Column="0" x:Name="PART_MainDisplay" Background="Gray"/>
                        <Grid Grid.Column="1" Grid.RowSpan="3">
                            <StackPanel VerticalAlignment="Center">
                                <Label x:Name="PART_TotalBarsLbl" Content="Total Bars:"/>
                                <Button Width="60" Content="AddBar" x:Name="PART_BtnAddBar"/>
                                <Button Width="60" Content="RemoveBar" x:Name="PART_BtnRemoveBar"/>
                                <Button Width="60" Content="GroupToPhrase" x:Name="PART_BtnGroupToPhrase"/>
                            </StackPanel>
                        </Grid>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

</ResourceDictionary>